<template>
  <!-- 详情 -->
  <el-dialog title="场内车辆管理详情" :visible.sync="dialogVisible" width="50%" append-to-body :close-on-click-modal="false" :before-close="closedialog">
       <el-descriptions :column="2"  border>
		 <el-descriptions-item>
		        <template slot="label">
		         车辆编号
		        </template>
		       {{form.veCustomsNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         车牌号
		        </template>
		       {{form.vehicleNo}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         入场时间
		        </template>
		       {{form.enterTime}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         入场重量
		        </template>
		       {{form.enterWt}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         场所代码
		        </template>
		       {{form.fieldCode}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         通道代码
		        </template>
		       {{form.enterChannelCode}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         创建时间
		        </template>
		       {{form.createTime}}
		  </el-descriptions-item>
		 <el-descriptions-item>
		        <template slot="label">
		         创建人
		        </template>
		       {{form.createBy}}
		  </el-descriptions-item>
         </el-descriptions>
        <div slot="footer" class="dialog-footer" style="text-align: center;">
          <el-button @click="closedialog">关闭</el-button>
        </div>
    </el-dialog>
</template>

<script>
import { getVehicleEnterRecord } from "@/api/billsdecl/vehicleEnterRecord";
export default {
  props: {
    dict: {}
  },
  data() {
    return {
      //显示详情
      dialogVisible:false,
      form: {
                                      id: null,
                                            veCustomsNo: null,
                                            vehicleNo: null,
                                            enterTime: null,
                                            enterWt: null,
                                            fieldCode: null,
                                            enterChannelCode: null,
                                            createTime: null,
                                            createBy: null
                      }
    }
  },
  methods: {
    open(row){
      this.dialogVisible = true;
      this.loadDetail(row);
    },
    closedialog(){
      this.dialogVisible = false
    },
    // 获取详情
    loadDetail(row) {
      getVehicleEnterRecord(row.id).then((res) => {
        if (res.code == 200) {
          this.form = res.data;
                  }
      });
    },
  }
};
</script>

<style>

</style>
